﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="GestionarValoresDominio.aspx.cs" Inherits="WebSite.AdministracionDominio.GestionarValoresDominio" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="lbTitulo" runat="server" Text="<%$ Resources:AG, EtiquetaGestionDominio%>"
        CssClass="bold" />
    <asp:MultiView ID="mvGestionarValoresDominio" runat="server">
              <asp:View ID="vGestionarDominiosVentanaPrincipal" runat="server">
            <table>
                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnNuevoTipoDominio" 
                            Text="<%$ Resources:AG, BotonNuevoTipoDominio %>" onclick="btnNuevoTipoDominio_Click"
                            />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnModificarValoresDominios" 
                            Text="<%$ Resources:AG, BotonModificarValorDominio %>" onclick="btnModificarValoresDominios_Click"
                             />
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="vModificarValoresDominio" runat="server">
            <table>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="LbTipoDominio" Text="<%$ Resources:AG, LabelTipoDominio %>" />
                        <asp:DropDownList ID="ddlDominios" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlDominios_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="gvListaDominios" runat="server" ForeColor="Black" 
                            OnDataBound="gvListaDominios_DataBound" HorizontalAlign="Center" Width="900px" DataKeyNames="ID_DOMINIO"
                            PagerSettings-Visible="false" AllowPaging="True" AutoGenerateColumns="False"
                            AutoPostBack="true" 
                            OnSelectedIndexChanged="gvListaDominios_SelectedIndexChanged">
                            <Columns>
                                <asp:ButtonField DataTextField="ID_DOMINIO" ButtonType="Link" CommandName="Select"
                                    ItemStyle-HorizontalAlign="Center" Visible="true">
                                    <ControlStyle Width="30px" />
                                    <ItemStyle Width="30px" />
                                </asp:ButtonField>
                                <asp:BoundField DataField="X_DESCRIPCION" HeaderText="<%$ Resources:AG, EtiquetaDescripcion%>"
                                    ItemStyle-HorizontalAlign="Center">
                                    <ControlStyle Width="200px" />
                                    <ItemStyle Width="200px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="NUM_VALOR" HeaderText="<%$ Resources:AG, EtiquetaValor%>"
                                    HtmlEncode="false" ItemStyle-HorizontalAlign="Center">
                                    <ControlStyle Width="90px" />
                                    <ItemStyle Width="90px" />
                                </asp:BoundField>
                            </Columns>
                            <EditRowStyle BackColor="#999999" HorizontalAlign="Center" />
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                            <PagerSettings Visible="False" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" />
                            <%--<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" HorizontalAlign="Center" />--%>
                            <SortedAscendingCellStyle BackColor="#E9E7E2" HorizontalAlign="Center" />
                            <SortedAscendingHeaderStyle BackColor="#506C8C" HorizontalAlign="Center" />
                            <SortedDescendingCellStyle BackColor="#FFFDF8" HorizontalAlign="Center" />
                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" HorizontalAlign="Center" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" Visible="False" ID="lbDescripcionDominio" MaxLength="10" Text="<%$ Resources:AG, LabelDescripcion %>" />
                        <asp:TextBox runat="server" Visible="False" ID="tbDescripcionDominio" MaxLength="20" />
                         <asp:Label runat="server" Visible="False" ID="lbValorDominio" MaxLength="50" Text="<%$ Resources:AG, LabelValor %>" />
                        <asp:TextBox runat="server" Visible="False" ID="tbValorDominio" MaxLength="2" />
                         <asp:Button runat="server" Visible="False" ID="btnAgregar" Text="<%$ Resources:AG, BotonAgregar %>" onclick="btnAgregar_Click" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnAnt" Text="<%$ Resources:AG, BotonAnterior %>"
                            OnClick="btnAnt_Click" Visible="false" />
                        <asp:Button runat="server" ID="btnSig" Text="<%$ Resources:AG, BotonSiguiente %>"
                            OnClick="btnSig_Click" Visible="False" />
                        <asp:Label ID="lbInfoPaginado" runat="server" CssClass="bold" />

                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
